<div class="trcontainer">
	<f:groupedFor each="{kurse}" as="kursByModul" groupBy="gkvatext" groupKey="gkvatext">
<h2>Modul: {gkvatext}</h2>
		<table class="currtable"
			style="border-collapse: collapse; width: 100%; margin-bottom: 0.5em;">
	<tr  class="trohead2">
		<th>Datum</th>
		<th>KursNr</th>
		<th>UE </th>
		<th>Titel</th>
		<th>Status</th>
		<th>Details</th>
	</tr>

	
	<f:for each="{kursByModul}" as="kurs">
		<tr >
			<td><f:format.date format="d.m.y">{kurs.datum}</f:format.date></td>
			
			<td>{kurs.kursNr}</td>
			<td>{kurs.uestatus}</td>
			<td><f:if condition="{kurs.kurs}"><f:then>{kurs.titel}
				<f:for each="{kurs.kurs}" as="kursversion">
				<br>	<f:link.action action="show" controller="Kurs" arguments="{kurs : kursversion.kursID}">{kursversion.version}: {kursversion.kurstitel}</f:link.action>
			</f:for>
			</f:then><f:else>
				<f:link.action action="show" controller="Veranstaltung" arguments="{veranstaltung : kurs.veranstaltungsID}"><f:format.nl2br>{kurs.titel}</f:format.nl2br></f:link.action>
				</f:else></f:if>
				</td>
			<td>{kurs.status}</td>
			<td><f:if condition="{kurs.statusCode}>=0"><f:then>
				<f:link.action action="edit" arguments="{anmeldung : kurs.anmeldeId}"><f:image src="EXT:ifp_curriculum2/Resources/Public/details.png" alt="Info"  /></f:link.action>
				</f:then></f:if>
			</td>
				
		</tr>
	</f:for>
</table>
</f:groupedFor>

</div>